package com.songlanyun.modules.usergains.model;

import com.songlanyun.common.drive.ValueObject;
import com.songlanyun.common.enums.DistributionConstant;
import com.songlanyun.common.enums.GoodsConstant;
import com.songlanyun.common.enums.OrderConstant;
import com.songlanyun.modules.account.model.vo.AccountParentVO;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class UserOrderGainsTo implements ValueObject {

    /**
     * 所查会员
     */
    private AccountParentVO vo;


    /**
     * 算法
     */
    private DistributionConstant.DistributionComputer distributionComputer;

    /**
     * 算法取值类型
     */
    private DistributionConstant.DistributionType distributionType;


    private OrderConstant.UserOrderGainsType userOrderGainsType= OrderConstant.UserOrderGainsType.GENERAL;

    /**
     * 所得
     */
    private BigDecimal gains;

    /**
     * 环境值
     */
    private String envRemark;

    /**
     * 分润比率
     */
    private BigDecimal ratio = BigDecimal.ZERO;

}
